package com.zyong.design.pattern.bridge.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: FoldedPhone
 * @author: zyong
 * @create: 2024-04-06 22:14
 */
public class FoldedPhone extends Phone {
    public FoldedPhone(Brand brand) {
        super(brand);
    }

    @Override
    protected void open() {
        System.out.println("折叠手机");
        brand.open();
    }

    @Override
    protected void close() {
        System.out.println("折叠手机");
        brand.close();
    }

    @Override
    protected void call() {
        System.out.println("折叠手机");
        brand.call();
    }
}
